package com.qxglxt.qxglxt.service;

import java.util.List;

import javax.annotation.Resource;

import com.qxglxt.qxglxt.dao.IRolesDao;
import com.qxglxt.qxglxt.model.Modules;

import org.springframework.stereotype.Service;

@Service
public class ModulesServiceImpl implements IModulesService {
    
    @Resource
    private IRolesDao roleDao;

    @Override
    public List<Modules> findRolesModules(String roleId) {
        return roleDao.getOne(roleId).getModulesList();
    }
    

}